
    <input class="key-inp fl" type="text" placeholder="请输入检索的关键词" value="{$searchData.key}">
    <button class="key-btn fl"></button>
    <!--<input class="key-btn fl" type="submit" value="">-->

<style>
    .key-inp{
        width: 200px;
        height: 26px;
        line-height: 26px;
        background: #fff;
        border: 1px solid #e5e5e5;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .key-btn{
        width: 31px;
        height: 25px;
        line-height: 25px;
        background: #A92E39 url("/Extend/images/operation-icon/search-fff.svg") no-repeat center center;
        background-size: 40%;
    }
</style>
<script>
    $(function(){
        $(".key-btn").click(function(){
            var key=$(".key-inp").val();
            $("#key").val(key);
            myForm.submit();
        })
        $(document).keydown(function(event){
            if(event.keyCode == 13){
                var key=$(".key-inp").val();
                $("#key").val(key);
                myForm.submit();
            }
        });
    })
</script>